/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author Matthy & Jelle
 */
@Entity
@Table(name="T_OSCARUITREIKING")
public class OscarUitreiking {
  @Id @GeneratedValue(strategy= GenerationType.IDENTITY)
  private Integer id;
  @ManyToOne(optional=false, cascade=javax.persistence.CascadeType.PERSIST)
  @JoinColumn(name="oscar_id")
  private Oscar oscar;
  @ManyToOne
  @JoinColumn(name="persoon_id")
  private Functie functie;
  @ManyToOne
  @JoinColumn(name="film_id")
  private Film film;
  @Temporal(javax.persistence.TemporalType.DATE)
  private Date datum;

  public Integer getId() {
    return id;
  }

  public Oscar getOscar() {
    return oscar;
  }

  public Functie getFunctie() {
    return functie;
  }

  public Film getFilm() {
    return film;
  }

  public Date getDatum() {
    return datum;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public void setOscar(Oscar oscar) {
    this.oscar = oscar;
  }

  public void setFunctie(Functie functie) {
    this.functie = functie;
  }

  public void setFilm(Film film) {
    this.film = film;
  }

  public void setDatum(Date datum) {
    this.datum = datum;
  }

}
